import { ElMessage } from 'element-plus';

export const useMessage = (option?) => {
  const warning = (message) => {
    ElMessage.warning(message);
  };
  const success = (message) => {
    ElMessage.success(message);
  };
  const info = (message) => {
    ElMessage.info(message);
  };
  const error = (message) => {
    ElMessage.error(message);
  };
  return {
    warning,
    success,
    info,
    error
  };
};
